import { ApiProperty, PartialType } from '@nestjs/swagger';
import { ResFailDto, ResSuccessDto } from './base.dto';

class Tag {
  @ApiProperty({
    required: true,
  })
  tagname: string;
}

export class GetAllTagResSuccessDto extends PartialType(ResSuccessDto) {
  @ApiProperty({
    required: true,
    type: 'array',
    items: {
      type: 'object',
      default: {
        tagname: '',
      },
    },
  })
  data: Tag[];
}

export class GetAllTagResFailDto extends PartialType(ResFailDto) {}
